/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.bicycle.service;

import java.util.List;
import java.util.List;

import com.jeesite.modules.pile.entity.Pile;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeesite.common.entity.Page;
import com.jeesite.common.service.CrudService;
import com.jeesite.modules.bicycle.entity.BicycleUser;
import com.jeesite.modules.bicycle.dao.BicycleUserDao;

/**
 * BlueBike用户Service
 * @author 谢宇燊
 * @version 2020-04-07
 */
@Service
@Transactional(readOnly=true)
public class BicycleUserService extends CrudService<BicycleUserDao, BicycleUser> {
	@Autowired
	private BicycleUserDao bicycleUserDao;
	
	/**
	 * 获取单条数据
	 * @param bicycleUser
	 * @return
	 */
	@Override
	public BicycleUser get(BicycleUser bicycleUser) {
		return super.get(bicycleUser);
	}
	
	/**
	 * 查询分页数据
	 * @param bicycleUser 查询条件
	 * @param bicycleUser.page 分页对象
	 * @return
	 */
	@Override
	public Page<BicycleUser> findPage(BicycleUser bicycleUser) {
		return super.findPage(bicycleUser);
	}
	
	/**
	 * 保存数据（插入或更新）
	 * @param bicycleUser
	 */
	@Override
	@Transactional(readOnly=false)
	public void save(BicycleUser bicycleUser) {
		super.save(bicycleUser);
	}
	
	/**
	 * 更新状态
	 * @param bicycleUser
	 */
	@Override
	@Transactional(readOnly=false)
	public void updateStatus(BicycleUser bicycleUser) {
		super.updateStatus(bicycleUser);
	}
	
	/**
	 * 删除数据
	 * @param bicycleUser
	 */
	@Override
	@Transactional(readOnly=false)
	public void delete(BicycleUser bicycleUser) {
		super.delete(bicycleUser);
	}

	/**
	 * 登录
	 * @param  loginCode  password
	 */

	public List<BicycleUser> dologin(String loginCode, String password) {

		return  bicycleUserDao.login(loginCode, password);
	}


}